⎩⎪⎪⎪⎪⎨⎪⎪⎪⎪⎧7x=7z8x+y=5z+2wy=3z3y=6z+w
From 7x=7z, x=z. From x=z and y=3z, 8z+3z=5z+2w→w=3z.
Letting z=1, x=1, y=3, w=3: CX7HX8+3HNOX3CX7HX5OX6NX3+3HX2O
Gauss's Method
Linear Combination of x1,x2,...,xn has form a1x1+a2x2+⋯+anxn, where a1,...,an∈R are coefficients
Example 1.1
.5x−y+z is an example xy+z is not
Linear Equation is in form a1x1+a2x2+⋯+anxn=d where d∈R is the constant. n-tuple (s1,s2,...,sn) satisfies the equation when a1s1+a2s2+⋯+ansn=d, and is called the solution System of Linear Equation has several linear equations a1,1x1+a1,2x2+⋯+a1,nxn=d1⋮an,1x1+an,2x2+⋯+an,nxn=dn n-tuple (s1,s2,...,sn) must satisfy all equations
Row operators: arrow with expression above like ρ1+ρ2 or ρ1↔ρ2
put the row in which operators act on at the end (some books put it at the start)
Leading variable: first variable with a nonzero coefficient echelon form: the leading variable is to the right of the previous equation's leading variable x+4y−11y−+4z7z6z===0312
Theorem:
the following operators does not change the set of solutions
an equation is swapped with another (swapping)
an equation has both sides multiplied by a nonzero constant (rescaling)
an equation is replaced by the sum of itself and a multiple of another (row combination)
called elementary reduction operations, row operations, or Gaussian operations
An inconsistency (like 0=−1) gives no solutions, an obvious fact (like 0=0) gives infinitely many solutions, and fewer equations than variables also gives infinitely many solutions
Example 1.2
Convert the following system of equations to echelon form: 3x2x−x−−+4yy2y+++2zz3z===−11−313
parametrize by free variables, variables that are not leading in echelon form 2x+−yy++zz−+w4w==56
Free variables are z and w, parametrize in terms of those and constants y=−6+z+4wx=21(5−y−z+w)=211−z−23w
Example 1.3
Find the solution set to the following system of equations: 2x−x++y3y−−5z8z−+3w5w==4−9
2x−x++y3y−−5z8z−+3w5w==4−92ρ2+ρ1ρ1↔ρ2−x+3y7y−−8z21z++5w7w==−9−14−ρ11/7ρ2x−3yy+−8z3z−+5ww==9−2
The free variables are z and w, and y can be parametrized in terms of them. y=3z−w−2
Now, substitute y and solve x in terms of z and w x−3(3z−w−2)+8z−5w=9x−z−2w+6=9x=z+2w+3
So, the solutions are x=z+2w+3y=3z−w−2
Matrices
m×n matrix has m rows and n columns ⎝⎜⎜⎜⎜⎜⎜⎜⎛a1,1⋮ai,1⋮am,1a1,2⋮ai,2⋮am,2⋯⋮⋯⋮⋯a1,j⋮ai,j⋮am,j⋯⋮⋯⋮⋯a1,n⋮ai,n⋮am,n⎠⎟⎟⎟⎟⎟⎟⎟⎞
also denoted (ai,j)i=1,...,mj=1,...,n ai,j is element in row i and column j
Vector
column vector, or just vector, is a matrix with a single column
single row vector called row vector
Column Vector: v=⎝⎜⎛−1−0.50⎠⎟⎞
Row Vector: w=(−1−0.50)
Turn linear system into matrix A and column vector d A=⎝⎜⎜⎛a1,1⋮am,1a1,2⋮am,2⋯⋮⋯a1,n⋮am,n⎠⎟⎟⎞and d=⎝⎜⎜⎛d1⋮dm⎠⎟⎟⎞
Converting to column matrices, the linear system can be written x1a1+x2a2+⋯+xnan=d
where ak=⎝⎜⎜⎛a1,k⋮am,k⎠⎟⎟⎞
Augmented Matrix
combines matrix A and column vector d into one matrix (A∣d)=⎝⎜⎜⎜⎜⎜⎜⎜⎛a1,1⋮ai,1⋮am,1a1,2⋮ai,2⋮am,2⋯⋮⋯⋮⋯a1,j⋮ai,j⋮am,j⋯⋮⋯⋮⋯a1,n⋮ai,n⋮am,nd1⋮di⋮dm⎠⎟⎟⎟⎟⎟⎟⎟⎞
Use row reduction on an augmented matrix to simplify the process of solving linear systems
Parametrized solutions can be written in vector notation
e.g. ⎩⎪⎨⎪⎧⎝⎜⎛xyz⎠⎟⎞=⎝⎜⎛1/310⎠⎟⎞+z⎝⎜⎛2/34/31⎠⎟⎞∣∣∣∣∣∣∣z∈R⎭⎪⎬⎪⎫
Example 1.4
The following linear system 2x1+3x2−4x3+x4=−12−x1−2x2+4x3−2x4=9−3x1+x2−3x4=−3x2−3x4=−6
can be turned into the matrix and column vector A=⎝⎜⎜⎜⎛2−1−303−211−44001−2−3−3⎠⎟⎟⎟⎞d=⎝⎜⎜⎜⎛−129−3−6⎠⎟⎟⎟⎞
The matrix A can be split into column matrices, so the linear system can also be written x1⎝⎜⎜⎜⎛2−1−30⎠⎟⎟⎟⎞+x2⎝⎜⎜⎜⎛3−211⎠⎟⎟⎟⎞+x3⎝⎜⎜⎜⎛−4400⎠⎟⎟⎟⎞+x4⎝⎜⎜⎜⎛1−2−3−3⎠⎟⎟⎟⎞=⎝⎜⎜⎜⎛−129−3−6⎠⎟⎟⎟⎞
In augmented matrix form, this looks like ⎝⎜⎜⎜⎛2−1−303−211−44001−2−3−3−129−3−6⎠⎟⎟⎟⎞
The system can be solved by applying row reduction to the augmented matrix ρ1↔1/−3ρ3ρ4↔ρ2ρ3+ρ4⎝⎜⎜⎜⎛2−1−303−211−44001−2−3−3−129−3−6⎠⎟⎟⎟⎞⎝⎜⎜⎜⎛1−1200−23104−400−21−3−19−12−6⎠⎟⎟⎟⎞⎝⎜⎜⎜⎛1000013−200−440−31−2−1−6−108⎠⎟⎟⎟⎞⎝⎜⎜⎜⎛1000010000−400−3102−1−684⎠⎟⎟⎟⎞Echelon Form−ρ4+ρ3ρ1+ρ2−2ρ1+ρ3−3ρ2+ρ32ρ2+ρ4⎝⎜⎜⎜⎛2−1−303−201−44001−20−3−1293−6⎠⎟⎟⎟⎞⎝⎜⎜⎜⎛10000−23104−400−21−3−18−10−6⎠⎟⎟⎟⎞⎝⎜⎜⎜⎛1000010000−440−310−8−1−68−4⎠⎟⎟⎟⎞
This is equivalent to the linear system x1x2−4x3+−3x410x42x4====−1−684
From row 4, x4=2
From row 3, −4x3+10(2)=8→x3=3
From row 2, x2−3(2)=−6→x2=0
From row 1, x1=−1
So, the solution is ⎝⎜⎜⎜⎛x1x2x3x4⎠⎟⎟⎟⎞=⎝⎜⎜⎜⎛−1032⎠⎟⎟⎟⎞